<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

/**
 * Class UserBill
 *
 * @package App\Model
 * @mixin \Eloquent
 * @property int id
 * @property int type
 * @property int income_type
 * @property int user_id
 * @property int money
 * @property int relation_id
 * @property string describe
 * @property int $id
 * @property int|null $type 1：奖励金转入，2：克隆收益,3:体现失败，4：微信充值会员，5提现成功或者申请提现，6克隆支出，7开通会员，8平台充值会员，9脉宝充值
 * @property int|null $income_type 类型:1收入，0支出
 * @property int $user_id 会员id
 * @property float|null $money 收入或者支出的金额
 * @property int $relation_id 关联表id，比如类型是1的会员分销提成关联表是user_commission_details返佣表
 * @property string|null $describe 描述
 * @property \Illuminate\Support\Carbon|null $created_at 创建时间
 * @property \Illuminate\Support\Carbon|null $updated_at 修改时间
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\UserBill newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\UserBill newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\UserBill query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\UserBill whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\UserBill whereDescribe($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\UserBill whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\UserBill whereIncomeType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\UserBill whereMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\UserBill whereRelationId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\UserBill whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\UserBill whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\UserBill whereUserId($value)
 */
class UserBill extends Model
{
    protected $table = 'user_wallet_record_log';

    protected $fillable = ['user_id', 'type', 'describe', 'money', 'income_type', 'relation_id'];
}
